﻿using Com.JunCaiSoft.Accountant.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Accountant.Entity
{
    /// <summary>
    /// 科目
    /// </summary>
    public class Subject
    {
        /// <summary>
        /// 科目标识
        /// </summary>
        public virtual Guid Id { get; set; }
        /// <summary>
        /// 科目代码
        /// </summary>
        public virtual String Code { get; set; }
        /// <summary>
        /// 科目类别（资产类、负债类、所有者权益类）
        /// </summary>
        public virtual SubjectType Type { get; set; }
        /// <summary>
        /// 一级科目代码
        /// </summary>
        public virtual String TopCode { get; set; }
        /// <summary>
        /// 父级科目代码
        /// </summary>
        public virtual String ParentCode { get; set; } 
        /// <summary>
        /// 记账标记
        /// </summary>
        public virtual BookMark BookMark { get; set; }
        /// <summary>
        /// 科目名称
        /// </summary>
        public virtual String Name { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public virtual String Summary { get; set; }
        /// <summary>
        /// 发生额
        /// </summary>
        public virtual Double Amount { get; set; }
        /// <summary>
        /// 记账日期
        /// </summary>
        public virtual DateTime BookDate { get; set; }
        /// <summary>
        /// 记账日期
        /// </summary>
        public virtual DateTime CreateTime { get; set; }
    }
}
